package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;

/**
 * 功能：基金设置实体类（连表）
 * 编写者：蒋玲苹
 * 日期：2021-03-12
 * 版本：1.0
 */
public class FoundationTwo implements Serializable {
    /*基金代码*/
    private String fundId;
    /*基金名称*/
    private String fundName;
    /*基金管理公司名称*/
    private String comName;
    /*基金托管公司名称*/
    private String company;
    /*基金类型*/
    private int fundType;
    /*计算天数*/
    private int day;
    /*基金成立时间*/
    private String fundTime;

    /*初始基金净值*/
    private double NIF;
    /*基金规模*/
    private double fundSize;
    /*现金账户ID*/
    private String accName;
    /*备注*/
    private String notes;

    /*默认构造方法*/
    public FoundationTwo() {
    }
    /*带参数的构造方法*/

    public FoundationTwo(String fundId, String fundName, String comName, String company, int fundType, int day, String fundTime, double NIF, double fundSize, String accName, String notes) {
        this.fundId = fundId;
        this.fundName = fundName;
        this.comName = comName;
        this.company = company;
        this.fundType = fundType;
        this.day = day;
        this.fundTime = fundTime;
        this.NIF = NIF;
        this.fundSize = fundSize;
        this.accName = accName;
        this.notes = notes;
    }

    /*set和get方法*/
    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public String getFundName() {
        return fundName;
    }

    public void setFundName(String fundName) {
        if(fundName.trim().equals("")){
            this.fundName=null;
        }else
        this.fundName = fundName;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public void setFundType(int fundType) {
        this.fundType = fundType;
    }

    public int getFundType() {
        return fundType;
    }

    public void setFundType(String fundType) {
        if (fundType.trim().equals("")){
            this.fundType=0;
        }else
        this.fundType = Integer.parseInt(fundType);
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String getFundTime() {
        return fundTime;
    }

    public void setFundTime(String fundTime) {
        this.fundTime = fundTime;
    }

    public double getNIF() {
        return NIF;
    }

    public void setNIF(double NIF) {
        this.NIF = NIF;
    }

    public double getFundSize() {
        return fundSize;
    }

    public void setFundSize(double fundSize) {
        this.fundSize = fundSize;
    }

    public String getAccName() {
        return accName;
    }

    public void setAccName(String accName) {
        this.accName = accName;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}
